﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="WorkFlow_WFDesigner_Paint" ValidateRequest="false" Codebehind="Paint.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns:v="urn:schemas-microsoft-com:vml" >
<head id="Head1" runat="server">
<title>流程图</title>
<meta name="Keywords" content="WebFlow" />
<link href="inc/style.css" type="text/css" rel="Stylesheet" />
<script language="javascript" type="text/javascript"  src="inc/contextMenu/context.js"></script>
<script language="javascript" type="text/javascript"  src="js/webflow.js"></script>
<script language="javascript" type="text/javascript"  src="js/function.js"></script>
<script language="javascript" type="text/javascript"  src="js/movestep.js"></script>
<script language="javascript" type="text/javascript"  >

</script>
<style type="text/css">
v\:* { Behavior: url(#default#VML) }
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%" cellspacing="2px" cellpadding="2px">
<tr>
<td>
<table width="100%"  border="1" cellpadding="8" cellspacing="0" class="btn_area">
        <tr>        
        <td align="right">
            <asp:Button  ID="btnFlowProperty"  Text="流程属性" OnClientClick='javascript:mEditFlow();' runat="server" />
            <asp:Button  ID="btnAddMunualNode" Text="新增人工"  OnClientClick="javascript:return mEditNode('','100203','560','600');" runat="server" />
            <asp:Button  ID="btnAddDecisionNode"  Text="新增决策"  OnClientClick="javascript:return mEditNode('','100204','560','300');"  runat="server" />
            <asp:Button  ID="btnAddCoalitionNode"  Text="新增聚合"  OnClientClick="javascript:return mEditNode('','100205','560','300');"  runat="server" />
            <asp:Button  ID="btnAddLine"  Text="新增连接"  OnClientClick="javascript:mEditLine('');" runat="server" />
            <asp:Button  ID="btnSaveLayout"  Text="保存布局"  OnClientClick='mSaveLayout();' runat="server" />         
            <asp:Button  ID="btnActive"  Text="激  活"  OnClientClick='mActiveFlow();' runat="server" />
            <asp:Button  ID="btnResume"  Text="恢  复"  OnClientClick='mResumeFlow();' runat="server" />
            <asp:Button  ID="btnCancel"  Text="作  废"  OnClientClick='mCancelFlow();' runat="server" />       
            
        </td>
        </tr>
     </table>
</td>
</tr>
</table>    
    <table border=0 id="tbFlow">
        <tr>	
	        <td width="800" height="500">
	            <table cellspacing="0" cellpadding="0" class="panel_style" border="0">
	                <tr>
	                    <td  width="800" height="500" onclick="cleancontextMenu();return false;" oncontextmenu='flowContextMenu();return false;' valign=top align=left>
                            <v:group ID="FlowVML"  style="left:193;top:28;width:800px;height:500px;position:absolute;" coordsize="2000,2000">
	                        </v:group>
	                    </td>
	                </tr>			
	            </table>
	        </td>
        </tr>
    </table>
    </div>
    <input type="hidden" id='hiFlowXML' name=FlowXML onpropertychange='if(AUTODRAW) {redrawVML();}' runat="server" />
    </form>
    <script language="javascript" type="text/javascript">
    FlowID='<%=Request.QueryString["ID"] %>';
    FlowXMLClientID='<%=hiFlowXML.ClientID %>';
    document.getElementById(FlowXMLClientID).value='<%=GetXmlString() %>';
    </script>
</body>
</html>
